import Layout from '@/views/layout/Layout'
import iconHome from '@/assets/images/home-dark.png'

export default {
  path: '/role',
  name: 'role',
  component: Layout,
  meta: {
    title: '角色',
    icon: iconHome,
  },
  children: [
    {
      path: '/role/list',
      name: 'roleList',
      component: () => import(/* webpackChunkName: "roleList" */ './RoleList.vue'),
      meta: {
        title: '角色列表',
      },
    },
    {
      path: '/role/list2',
      name: 'roleList',
      component: () => import(/* webpackChunkName: "roleList" */ './RoleList2.vue'),
      meta: {
        title: '角色列表2',
      },
      children: [
        {
          path: '/role/list2/sub1',
          name: 'sub1',
          component: () => import(/* webpackChunkName: "roleList" */ './Sub1.vue'),
          meta: {
            title: 'sub1',
          },
        },
        {
          path: '/role/list2/sub2',
          name: 'sub2',
          component: () => import(/* webpackChunkName: "roleList" */ './Sub2.vue'),
          meta: {
            title: 'sub2',
          },
        },
      ],
    },
  ],
}
